package me.dwk.dandan.function;

/**
 * 参数上下文 线程相关
 *
 * @author wenke.dong
 *
 */
public class VariablesContext {

	private VariablesContext() {}

	private static final ThreadLocal<ThreadVariables> VARIABLES = ThreadLocal.withInitial(ThreadVariables::new);

	public static ThreadVariables getVariables() {
		return VARIABLES.get();
	}

	public static void setThreadVariables(ThreadVariables vars) {
		VARIABLES.set(vars);
	}

	public enum Mode {
		THREAD_SINGLETON, GLOBLE_SINGLETON;
	}
}
